package com.ybbase.framework.common.constant;

import lombok.*;

/**
 * 系统配置类常量
 *
 * @author shenaiguo
 * @date 2019-12-09
 * @since cloud2.0
 */
@ToString
@AllArgsConstructor
@NoArgsConstructor
public enum CommonResultCode {
    /**
     * 成功
     * */
    SUCCESS(0, "成功"),
    /**
     * 成功
     * */
    WS_SUCCESS(5000, "流程成功"),
    /**
     * 失败
     * */
    FAIL(9001,"失败"),
    /**
     * Jwt令牌过期
     * */
    JWT_OVERDER(151001,"Jwt令牌过期"),
    /**
     * JWT缺失异常
     * */
    JWT_DEFECT(151002,"JWT缺失异常"),
    /**
     * JWT非法改造
     * */
    JWT_ABNORMAL(151003,"JWT非法改造"),
    /**
     * 登录异常错误
     * */
    AUTH_MY(150000,"登录异常错误");
    @Getter
    @Setter
    private int code;
    @Getter
    @Setter
    private String msg;

}
